<?php
/**
 * Created by PhpStorm.
 * User: Bobo
 * Date: 2017/4/12
 * Time: 16:38
 */
session_start();
function session($name){
    if (!isset($_SESSION['zy_game'])) return null;
    return $_SESSION['zy_game'][$name];
}

function I($name){
    if (isset($_POST[$name])) {return addslashes($_POST[$name]);}
    if (isset($_GET[$name])) {return addslashes($_GET[$name]);}
    return null;
}